﻿<UserControl x:Class="ColorPickerControls.Pickers.ColorPickerStandardWithAlpha"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="269" d:DesignWidth="473" 
             xmlns:my="clr-namespace:ColorPicker" 
             xmlns:my1="clr-namespace:ColorPicker.ColorModels.RGB" 
             xmlns:my2="clr-namespace:ColorPicker.ColorModels.HSB"
             xmlns:my3="clr-namespace:ColorPicker.ColorModels.Lab" 
             xmlns:my4="clr-namespace:ColorPicker.ColorModels.CMYK">
    
    <Grid>

        <my:ColorSelector Height="270" HorizontalAlignment="Left" Margin="2,1,0,0" x:Name="colorSelector" VerticalAlignment="Top" Width="314" /> 
        <my:HexDisplay Height="25" HorizontalAlignment="Left" Margin="325,242,0,0" x:Name="hexDisplay" VerticalAlignment="Top" Width="79" 
                       Color="{Binding Path=Color, ElementName=colorSelector}" AlphaByteVisibility="visible" />
        <my1:RgbDisplay HorizontalAlignment="Left" Margin="325,157,0,0" x:Name="rgbDisplay" VerticalAlignment="Top"
                        Color="{Binding Path=Color, ElementName=colorSelector}" 
                        NormalComponent="{Binding ElementName=colorSelector, Path=NormalComponent}" />
        <my2:HsbDisplay Height="90" HorizontalAlignment="Left" Margin="325,71,0,0" x:Name="hsbDisplay" VerticalAlignment="Top" Width="94" Color="{Binding Path=Color, ElementName=colorSelector}" NormalComponent="{Binding ElementName=colorSelector, Path=NormalComponent}" />
        <my:NewCurrent HorizontalAlignment="Left" Margin="325,1,0,0" x:Name="newCurrent" VerticalAlignment="Top" Height="73" Width="71" 
                       NewColor="{Binding ElementName=colorSelector, Path=Color}" Orientation="Vertical" 
                       Alpha="{Binding ElementName=alphaDisplay, Path=Alpha, Mode=OneWay}" />
        <my:AlphaDisplay HorizontalAlignment="Left" Margin="423,2,0,0" x:Name="alphaDisplay" VerticalAlignment="Top" Height="266"
                         Color="{Binding Path=Color, ElementName=colorSelector}" />
    </Grid>
</UserControl>
